﻿using System;
using System.Runtime.InteropServices;

namespace Noria.Core
{
    internal class NativeMethods
    {

        [DllImport("user32")]
        public static extern int SendMessageW(int hwnd, int message, int wParam, int lParam);
        public const int WM_CHAR = 0x0102;


        [DllImport("user32")]
        public static extern int RegisterWindowMessageA([MarshalAs(UnmanagedType.VBByRefStr)] ref string lpString);
        [DllImport("oleacc")]
        public static extern int ObjectFromLresult(int lResult, ref Guid riid, int wParem, [MarshalAs(UnmanagedType.Interface)] out object ppvObject);
        [DllImport("user32")]
        public static extern int SendMessageA(int hWnd, int wMsg, int wParam, int lParam);
        [DllImport("user32")]
        public static extern int FindWindowExW(int hParent, int hChildAfter, [MarshalAs(UnmanagedType.LPWStr)] string lpszClass, [MarshalAs(UnmanagedType.LPWStr)] string lpszWindow);
    }
}
